package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 表名：flower_type
*/
@Table(name = "flower_type")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FlowerType implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "type_id")
    private Integer typeId;

    @Column(name = "type_name")
    private String typeName;

    @Column(name = "create_time")
    private Date createTime;

    /**
     * 分类状态 0为正常 1为删除 2禁用 
     */
    @Column(name = "is_delete")
    private Integer isDelete;

    /**
     * @return typeId
     */
    public Integer getTypeId() {
        return typeId;
    }

    /**
     * @param typeId
     */
    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    /**
     * @return typeName
     */
    public String getTypeName() {
        return typeName;
    }

    /**
     * @param typeName
     */
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    /**
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取分类状态 0为正常 1为删除 2禁用 
     *
     * @return isDelete - 分类状态 0为正常 1为删除 2禁用 
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 设置分类状态 0为正常 1为删除 2禁用 
     *
     * @param isDelete 分类状态 0为正常 1为删除 2禁用 
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}